﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ColourAdvisorPhoneApp
{
    public partial class MainPage : PhoneApplicationPage
    {
        // intro text, bind to text block in xaml
        private string intro = "In 2 steps discover which colours are best suited to your individual colouring based on your hair colour, eye colour and skin tone.";
        
        // auto implemented property
        public string Intro
        {
            get
            {
                return intro;
            }
        }

        // Constructor
        public MainPage()
        {
            InitializeComponent();
            introText.Text = Intro;
        }

        private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            //Navigate to Colouring Details Page to Start "Discover My Colours"
            NavigationService.Navigate(new Uri("/ColouringDetailsPage.xaml", UriKind.Relative));
        }

        // Application Bar Click Events

        private void NextButton_Click(object sender, EventArgs e)
        {
            // Navigate to next page which is Colouring Details Page to Start "Discover My Colours"
            NavigationService.Navigate(new Uri("/ColouringDetailsPage.xaml", UriKind.Relative));
        }

        private void DiscoverItem_Click(object sender, EventArgs e)
        {
            //Navigate to Colouring Details Page to Start "Discover My Colour Type"
            NavigationService.Navigate(new Uri("/ColouringDetailsPage.xaml", UriKind.Relative));
        }

        private void ColourTypeDescriptionItem_Click(object sender, EventArgs e)
        {
            //Navigate to My Colour Type Description page
            NavigationService.Navigate(new Uri("/ColourResultPage.xaml", UriKind.Relative));
        }

        private void ColourTypeImagesItem_Click(object sender, EventArgs e)
        {
            // Navigate to My Colour Type Images page
            NavigationService.Navigate(new Uri("/ColourTypeImagesPage.xaml", UriKind.Relative));
        }

        private void FashionTrendsItem_Click(object sender, EventArgs e)
        {
            // Navigate to Fashion Trends page
            NavigationService.Navigate(new Uri("/FashionTrendsPage.xaml", UriKind.Relative));
        }  
    }
}